#ifndef CGENERALIMAGE_H_
#define CGENERALIMAGE_H_

#include "CImage.h"
#include <gdi.h>
#include "CImageDecoderProcess.h"

	
class CGeneralImage : public CImage,
					  public MImageLoadedNotify
{
	
public:
	CGeneralImage();
	virtual ~CGeneralImage();
	
public:  //MImageLoadedNotify
	TDesC& GetFileName();
	RArray<TFrame>* GetFrames();
	void LoadedCompleteNotify();
	
public:  //CImage
	void ConstructL();
	
public:
	void Draw(CBitmapContext& aGc,const TRect& aRc,TSize aCorner,TInt aOpacity);
private:
	RArray<TFrame> iImageFrameArray;
	CImageDecoderProcess* iImageDecoder;
	TInt iCurrentFrame;
	
	void Reset();
};


#endif /*CGENERALIMAGE_H_*/
